import http from 'k6/http';
import {check} from 'k6';

var url = 'http://demoUrl';

var header = {
	headers:{
		'Authorization':'Bearer 1887C52F77CA36927DB0397E91A371DCDACAF2D11338F101DC94D536B8BF82F3',
		'Content-Type':'application/json'
	}
};

export default function(){
	try{
		let res = http.post(url, body, header);
		check(res, {'status is 200':(r)=>r.status ==200,});
	}catch(e){
		console.log("异常信息："+e);
	};
	
}